package com.lanyou.cook.repository.userManagement;

import java.util.List;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.Repository;
import org.springframework.data.rest.core.annotation.RestResource;

import com.lanyou.cook.entity.domain.userManagement.Permission;


public interface PermissionRepository extends Repository<Permission, String>, JpaSpecificationExecutor<Permission> {
	
	@RestResource(exported=false)
	Permission findOne(String id);
	
	@RestResource(exported=false)
	List<Permission> findAll(Iterable<String> ids);
	
	List<Permission> findAll();
}
